<?php

namespace app\common\model\mycurrency;

use think\Model;
use traits\model\SoftDelete;

class AgentInformation extends Model
{

    //use SoftDelete;

    

    // 表名
    protected $name = 'mycurrency_agent_information';


    // 追加属性
    protected $append = [
        'Gender_text'
    ];




    /**
     * 订单 = 状态转文字
     */
    public function getGenderTextAttr($value, $data)
    {
        $str = '';
        switch ($data['gender']) {
            case 0://
                $str = '未知';
                break;
            case 1:
                $str = '男';
                break;
            case 2:
                $str = '女';
                break;
            default:
                break;
        }
        return $str;
    }


}
